<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./lib/axios.min.js"></script>
</head>
<body>
    <button>发送请求1</button>
    <button>发送请求2</button>
</body>
<script>
    const btns = document.querySelectorAll("button");
	const one = axios.create({
        baseURL:"http://zhangpeiyue.com",
        params:{
			age:12
        }
    });
	const two = axios.create({
        baseURL:"http://127.0.0.1"
    });

	btns[0].onclick = function(){
		one.get("/scoreList").then(value=>{
			console.log(value.data);
        })
    }
	btns[1].onclick = function(){
		two.get("/scoreList").then(value=>{
			console.log(value.data);
        })
    }
</script>
</html>